﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Fa.Kanbox.API;

namespace Fa.Kanbox.API.Demo
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            if (string.IsNullOrWhiteSpace(System.Configuration.ConfigurationManager.AppSettings["client_id"]) ||
                string.IsNullOrWhiteSpace(System.Configuration.ConfigurationManager.AppSettings["client_secret"]))
            {
                MessageBox.Show(@"请先在Fa.Kanbox.API.Demo.exe.config文件内，填写相应的client_id和client_secret;
申请地址http://open.kanbox.com");
                return;
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(MyGlobal.FLogin);
        }
    }
}
